package jk.fox.spring.config;

import lombok.Getter;
import lombok.Setter;

/**
 * @author cuichao
 * @Description: NettyConfigurationProperties
 * @Date: create in 2020/6/1 22:33
 */
@Getter
@Setter
public class NettyConfigurationProperties {
    /**
     * netty 服务端 work-eventLoopGroup数量
     */
    private int serverWorkGroup = 0;
    /**
     * netty客户端tcp等待列队最大数
     */
    private int serverTcpBacklog = 128;
    /**
     *是否关闭Nagle算法
     */
    private boolean disableNagle = true;
    /**
     * 是否开启长连接模式
     */
    private boolean KeepAlive = true;
    /**
     * 服务端心跳间隔
     */
    private int serverHeartBeat = 10;
    /**
     * 客户端心跳间隔
     */
    private int clientHeartBeat = 10;



}
